import os
import sys
from project.settings import WEB_SERVER_LISTEN_ADDR, GUNICORN_WORKER_NUMBER, GUNICORN_WORKER_CLASS

cwd = os.getcwd()
sys.path.append(cwd)
sys.path.append('%s/../pylib' % cwd)


bind = "%s:%s" % WEB_SERVER_LISTEN_ADDR

workers = GUNICORN_WORKER_NUMBER  # multiprocessing.cpu_count() * 2 + 1
print("gunicorn worker number : %s" % workers)
worker_class = GUNICORN_WORKER_CLASS  # "gevent"

# errorlog actually is just log
errorlog = "/home/yjyx/log/gunicorn.log"
loglevel = "info"
